// components/resourceView/resourceView.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    resid:{
      type: String,
      value: ''
    },
    editor:{
      type: String,
      value: '默认作者'
    },
    title: {
      type: String,
      value: '默认标题'
    },
    content: {
      type: String,
      value: '默认描述'
    },
    time: {
      type: String,
      value: '1970/1/1'
    },
    type: {
      type: String,
      value: ''
    },
    source: {
      type: String,
      value: ''
    },
    image:{
      type: String,
      value: ''
    },
  },

  /**
   * 组件的初始数据
   */
  data: {

  },
  /**
   * 组件的方法列表
   */
  methods: {
    _viewArticleDetail:function(e){
      wx.navigateTo({
        url: '/pages/wenzhangye/wenzhangye?id=' + this.data.resid + '&title=' + this.data.title + '&editor=' + this.data.editor + '&time=' + this.data.time,
      })
    },
    _viewVideoDetail:function(e){
      wx.navigateTo({
        url: '/pages/shipinye/shipinye?id=' + this.data.resid + '&title=' + this.data.title,
      })
    },
  }
})
